package org.cttic.visualization.visualization.controller;

import lombok.extern.slf4j.Slf4j;
import org.cttic.visualization.visualization.service.impl.RouteIdentificationQueryImpl;
import org.cttic.visualization.visualization.z_service.impl.z_RouteIdentificationQueryImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create 2020-04-30 14:55
 */
@RestController
@Slf4j
@RequestMapping(value = "/RouteIdentificationQuery")
@CrossOrigin
public class RouteIdentificationQueryController {
    @Autowired
    private RouteIdentificationQueryImpl routeIdentificationQueryImpl;
//    @RequestMapping(value = "/Identification")
    public String informationRouteIdentificationQuery(@RequestBody String jsonData){
        return routeIdentificationQueryImpl.routeIdentificationQuery(jsonData);
    }
    @Autowired
    private z_RouteIdentificationQueryImpl z_routeIdentificationQueryImpl;

    @RequestMapping(value = "/Identification")
    public String z_informationRouteIdentificationQuery(@RequestBody String jsonData){
        return z_routeIdentificationQueryImpl.z_routeIdentificationQuery(jsonData);
    }
}
